package com.qmx.qmxapp.adapter;

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qmx.qmxapp.R;
import com.qmx.qmxapp.bean.ClickEntity;

import java.util.List;

/**
 *
 */
public class ItemHandupAdapter extends BaseMultiItemQuickAdapter<ClickEntity, BaseViewHolder> {

    public ItemHandupAdapter(List<ClickEntity> data) {
        super(data);
        addItemType(ClickEntity.CLICK_ITEM_VIEW, R.layout.item_click_view);


    }


    @Override
    protected void convert(final BaseViewHolder helper, final ClickEntity item) {
        switch (helper.getItemViewType()) {
            case ClickEntity.CLICK_ITEM_VIEW:
                helper.addOnClickListener(R.id.iv_status);
                helper.addOnClickListener(R.id.btn);
                break;
        }
    }

}
